package com.core.service.Impl;

import com.core.dao.PylDao;
import com.core.domain.Stadium;
import com.core.domain.User;
import com.core.domain.useStadium;
import com.core.service.PylService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PylServiceImpl implements PylService {
    @Autowired
    private PylDao pylDao;
    @Override
    public List<useStadium> quaryStdiumStatus(String name) {
        return pylDao.quaryStdiumStatus(name);
    }

    @Override
    public User quaryUserInfo(String userAccount) {
        return pylDao.quaryUserInfo(userAccount);
    }

    @Override
    public Stadium queryStadiumInfo(String stadiumName) {
        return pylDao.queryStadiumInfo( stadiumName);
    }

    @Override
    public int updateStadium(Object id,Object newcontent,Object oldcontent) {
        return pylDao.updateStadium(id,newcontent,oldcontent);
    }

    @Override
    public List<String> queryStadiumName() {
        return pylDao.queryStadiumName();
    }
}
